package com.bright.cwduijie.duijie.pojo.po;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.persistence.*;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * @Author  hxj
 * @Date 2024-07-13 14:49:14 
 * @Description
 */

@Data
@Entity
@Table(name ="DJ_GDZC")
public class FixedAssets implements Serializable {

    private static final long serialVersionUID =  5472258214647960029L;

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @JsonIgnore
    @Column(name = "id")
    private Integer id;

    @NotBlank
    @Length(max = 36)
    @Column(name = "DATA_KEY")
    private String DATA_KEY;

    @NotBlank
    @Length(max = 18)
    @Column(name = "TYSHXYDM")
    private String TYSHXYDM;

    @NotBlank
    @Length(max = 9)
    @Column(name = "GDZCLX_BM")
    private String GDZCLX_BM;

    @NotBlank
    @Length(max = 64)
    @Column(name = "BM")
    private String BM;

    @NotBlank
    @Length(max = 128)
    @Column(name = "MC")
    private String MC;

    @NotNull
    @Column(name = "LY")
    private Integer LY;

    @NotNull
    @Column(name = "ZT")
    private Integer ZT;

    @Column(name = "PURCHASED_DATE")
    private Date PURCHASED_DATE;

    @Column(name = "RZRQ")
    private Date RZRQ;

    @Column(name = "SL")
    private String SL;

    @Column(name = "JLDW")
    private String JLDW;

    @NotNull
    @Column(name = "ZCYZ")
    private String ZCYZ;

    @NotNull
    @Column(name = "SFJTZJ")
    private Integer SFJTZJ;

    @Column(name = "ZJFF")
    private Integer ZJFF;

    @Column(name = "YJSYQS")
    private Integer YJSYQS;

    @Column(name = "ZJZQ")
    private Integer ZJZQ;

    @Column(name = "JCZL")
    private String JCZL;

    @Column(name = "YJJCZ")
    private String YJJCZ;

    @Column(name = "YLJZJ")
    private String YLJZJ;

    @Column(name = "YZJQS")
    private Integer YZJQS;

    @Length(max = 100)
    @Column(name = "ZCKM_BM")
    private String ZCKM_BM;

    @Length(max = 100)
    @Column(name = "ZJKM_BM")
    private String ZJKM_BM;

    @Length(max = 100)
    @Column(name = "FYKM_BM")
    private String FYKM_BM;

    @Length(max = 36)
    @Column(name = "KJPZ_DATA_KEY")
    private String KJPZ_DATA_KEY;

    @Length(max = 64)
    @Column(name = "GGXH")
    private String GGXH;

    @Length(max = 128)
    @Column(name = "ZCZLD")
    private String ZCZLD;

    @Length(max = 128)
    @Column(name = "ZCBGY")
    private String ZCBGY;

    @Length(max = 200)
    @Column(name = "BZ")
    private String BZ;

    @Column(name = "BGQ_XZ")
    private Integer BGQ_XZ;

//    @NotNull
    @JsonFormat(locale = "zh_CN", pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Column(name = "SYNC_CJSJ")
    private Date SYNC_CJSJ;

//    @NotNull
    @JsonFormat(locale = "zh_CN", pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Column(name = "SYNC_GXSJ")
    private Date SYNC_GXSJ;

//    @NotBlank
    @Length(max = 64)
    @Column(name = "SYNC_CJRYHM")
    private String SYNC_CJRYHM;

//    @NotBlank
    @Length(max = 64)
    @Column(name = "SYNC_GXRYHM")
    private String SYNC_GXRYHM;

    @JsonIgnore
    @Column(name = "sjjhbz")
    private Integer sjjhbz;

    @JsonIgnore
    @Column(name = "opType")
    private Integer opType;

    @JsonIgnore
    @Column(name = "taskId")
    private String taskId;


}
